/**
 * 
 */
package wsepForum.network.common;

/**
 * A unit of data proccessed by the tokenizer and sent to the UI controller
 * A Console token is a text line that the client writes inside the console
 * @author Oren Ben-Haim
 *
 */
public class ConsoleToken implements IToken<String> {
	/*****************************
	 * MEMBERS                   *
	 *****************************/
	/**
	 * Saved data
	 */
	private String data;
	
	/*****************************
	 * CONSTRUCTOR               *
	 *****************************/
	/**
	 * @param dataToSave data to save in token
	 */
	public ConsoleToken(String dataToSave) {
		this.data = dataToSave;
	}

	/* (non-Javadoc)
	 * @see wsepForum.domain.network.tokenizer.IToken#getData()
	 */
	@Override
	public String getData() {
		return this.data;
	}

}
